<template>
	<view class="container">
		<uni-list :border="false">
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="昵称"
				:rightText="user.nickName" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'phone-filled'}" title="手机号码 / 登陆账号"
				:rightText="user.userName" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'email-filled'}" title="邮箱"
				:rightText="user.email" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'auth-filled'}" title="会员等级"
				:rightText="user.grade" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="最近登陆"
				:rightText="user.loginDate" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'auth-filled'}" title="邀请您的ID"
				:rightText="user.parent" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="创建日期"
				:rightText="user.createTime" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="提现用户姓名"
				:rightText="user.alipayName" />
			<uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="提现用户账号"
				:rightText="user.alipayAccount" />
		</uni-list>

	</view>
</template>

<script>
	import {
		getUserProfile
	} from "@/api/system/user"

	export default {
		data() {
			return {
				user: {}
			}
		},
		onLoad() {
			getUserProfile().then(response => {
				this.user = response.data
			})
		}
	}
</script>

<style lang="scss">
	page {
		background: linear-gradient(180deg, #c4d6ff, #f7f8fa);
		min-height: 100%;
	}

	.container {
		margin: 30rpx;
		padding: 16rpx;
		border-radius: 16rpx;
		background-color: #fff;
	}
</style>